import Vue from 'vue'
import Router from 'vue-router'

import main from '../components/gouyanMovie/Main.vue'
import search from '../components/gouyanMovie/Search.vue'
import movieMsg from '../components/gouyanMovie/movieMsg.vue'
import longComment from '../components/gouyanMovie/longComment.vue'
import smallComment from '../components/gouyanMovie/smallComment.vue'
import starMsg from '../components/gouyanMovie/startMsg.vue'

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/main',
            name: 'main',
            component: main
        },
        {
            path: '/search',
            name: 'search',
            component: search
        },
        {
            path: '/movieMsg/:id',
            name: 'movieMsg',
            component: movieMsg,
            props: true
        },
        {
            path: '/longComment/:id',
            name: 'longComment',
            component: longComment,
            props: true
        },
        {
            path: '/smallComment/:id',
            name: 'smallComment',
            component: smallComment,
            props: true
        },
        {
            path: '/starMsg/:id',
            name: 'starMsg',
            component: starMsg,
            props: true
        }]
})